Skip to content

Process api hook - #2131

Merged
matthid merged 16 commits into
release/nextfrom
process_api_hook
Oct 10, 2018
Merged

matthid merged 16 commits into
release/nextfrom
process_api_hook

Conversation

@matthid

@matthid matthid commented Oct 8, 2018

Copy link
Copy Markdown
Member

Description

Use the new API in order to write unit-tests

let assemblies = assemblies |> Seq.toArray
let details = assemblies |> String.separated ", "
use __ = Trace.traceTask "NUnit" details
let p = createProcess setParams assemblies

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this not be

createProcess setParams assemblies
|> Proc.run

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes indeed

BlythMeister
BlythMeister previously approved these changes Oct 9, 2018
let tests =
testList "Fake.Core.Process.Tests" [
testPropertyWithConfig fsCheckConfig "toWindowsCommandLine is the inverse of fromWindowsCommandLine" <|
//Process.setEnableProcessTracing true

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this line is uncommented it completely breaks the "fake-context" for some reason and about the half (around 30) tests start to fail... Would be interesting to figure out why.
Note that not only tests in this file start failing but everywhere (especially the FakeVar and Context ones)

@matthid
matthid merged commit e9b8834 into release/next Oct 10, 2018
@matthid matthid mentioned this pull request Oct 12, 2018
@matthid
matthid deleted the process_api_hook branch November 10, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants